<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?
session_start();

?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta charset="utf-8">
  <!-- Title and other stuffs -->
  <title>Tambah Pekerjaan</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="author" content="">


  <!-- Stylesheets -->
  <link href="../../style/bootstrap.css" rel="stylesheet">
  <!-- Font awesome icon -->
  <link rel="stylesheet" href="../../style/font-awesome.css"> 
  <!-- jQuery UI -->
  <link rel="stylesheet" href="../../style/jquery-ui.css"> 
  <!-- Calendar -->
  <link rel="stylesheet" href="../../style/fullcalendar.css">
  <!-- prettyPhoto -->
  <link rel="stylesheet" href="../../style/prettyPhoto.css">   
  <!-- Star rating -->
  <link rel="stylesheet" href="../../style/rateit.css">
  <!-- Date picker -->
  <link rel="stylesheet" href="../../style/bootstrap-datetimepicker.min.css">
  <!-- jQuery Gritter -->
  <link rel="stylesheet" href="../../style/jquery.gritter.css">
  <!-- CLEditor -->
  <link rel="stylesheet" href="../../style/jquery.cleditor.css"> 
  <!-- Bootstrap toggle -->
  <link rel="stylesheet" href="../../style/bootstrap-toggle-buttons.css">
  <!-- Main stylesheet -->
  <link href="../../style/style.css" rel="stylesheet">
  <!-- Widgets stylesheet -->
  <link href="style/widgets.css" rel="stylesheet">   
  <!-- Responsive style (from Bootstrap) -->
  <link href="style/bootstrap-responsive.css" rel="stylesheet">
  
  <!-- HTML5 Support for IE -->
  <!--[if lt IE 9]>
  <script src="js/html5shim.js"></script>
  <![endif]-->

  <!-- Favicon -->
  <link rel="shortcut icon" href="img/favicon/favicon.png">
</head>

<body>
	<?
		/*require_once('../../model/cruds');
		require_once('../../config/config.php');
		*/include ('aheader.php');
	?>
	<div class="content">
	    <div class="sidebar">
        <div class="sidebar-dropdown"><a href="#">Navigation</a></div>

        <div class="sidebar-inner">

          <ul class="navi">

            <!-- Use the class nred, ngreen, nblue, nlightblue, nviolet or norange to add background color. You need to use this in <li> tag. -->

            <li class="norange"><a href="index.php"><i class="icon-home"></i> Home</a></li>

			<li class="norange"><a href="tambahteam.php"><i class="icon-plus"></i> Tambah Team</a></li>
			
            <li class="norange"><a href="tambahpegawai.php"><i class="icon-plus"></i> Tambah User (Pegawai)</a></li>
            
            <li class="norange"><a href="tambahtraining.php"><i class="icon-plus"></i> Tambah Training</a></li>
			
			<li class="norange current"><a href="tambahpekerjaan.php"><i class="icon-plus"></i> Tambah Pekerjaan</a></li>

          </ul>

          <!-- Search form -->
          <div class="sidebar-widget">
            <?php
			include ("search.php");
			?>
          </div>


        </div>

    </div>
	<?
		include('../../config/config.php');
		$res = mysql_query('SELECT * FROM biodata WHERE ID_DEPARTEMEN ='.$_SESSION['ID_DEPARTEMEN']);
		$res2 = mysql_query('SELECT * FROM jenis_pekerjaan');
	?>
  	<!-- Main bar -->
  	<div class="mainbar">
      
	    <!-- Page heading -->
	    <div class="page-head">
	    <!-- Matter -->

        <div class="container-fluid">

          <div class="row-fluid">

            <div class="span12">

              <div class="widget wgreen">
                
                <div class="widget-head">
                 <div class="pull-left">Tambah Pekerjaan</div>
                  <div class="widget-icons pull-right">
                    <a href="#" class="wminimize"><i class="icon-chevron-up"></i></a> 
                    <a href="#" class="wclose"><i class="icon-remove"></i></a>
                  </div>
                  <div class="clearfix"></div>
                </div>

                <div class="widget-content">
                  <div class="padd">
					<form method="post" action="../function/tambahpekerjaan.php" class="horizontal">
                    <!-- Form starts.  -->
                     <form class="form-horizontal">
                      <div class="control-group">
                        <label class="control-label" for="inputPekerjaan">Pekerjaan</label>
                        <div class="controls">
                          <input type="text" name="pekerjaan">
                        </div>
                      </div>
                        <div class="control-group">
                        <label class="control-label" for="inputNoDok">Nomor Dokumen</label>
                        <div class="controls">
                          <input type="text" name="nomor">
                        </div>
                      </div>
                       <div class="control-group">
                        <label class="control-label" for="inputJenis">Jenis Pekerjaan</label>
                        <div class='select-radio controls'>
                        <select id="jenis" name="jenis">
                         <?php
							while($row = mysql_fetch_array($res2)){
						?>
						<option value="<?php echo $row['ID_JENIS']; ?>" onClick=""><?php echo $row['JENIS_PEKERJAAN']; ?> </option>
						<?php } ?> 
                        </select>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label" for="inputPegawai">Nama Pegawai</label>
                        <div class='select-radio controls'>
                        <select id="pegawai" name="pegawai">
                        <?php
							while($row = mysql_fetch_array($res)){
						?>
						<option value="<?php echo $row['NIP']; ?>" onClick=""><?php echo $row['NAMA']; ?> </option>
						<?php } ?>
                        </select>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label" for="inputTanggal">Duedate</label>
                      	<div class="controls">
                       <input type="date" value="" data-date-format="yyyy-mm-dd" id="dp2" name="tanggal">
                        </div>
                      </div>  
                      <div class="control-group">
                        <label class="control-label" for="inputKeterangan">Keterangan</label>
                        <div class="controls">
                          <textarea rows="3" name="keterangan"></textarea>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label" for="upload">Upload File</label>
                         <div class='file-checkbox controls'>
                        <input class="file" type="file" name="nama_file" id="nama_file"  accept="application/pdf,application/zip"></input> 
                        </div>
                      </div>
                      
                      <div class="control-group">
                      	<div class="controls">
                        <button type="submit" class="btn" name="simpan">Simpan</button>
                        <button type="reset" class="btn">Batal</button>
                        </div>
                      </div>
                   
                    </form>

                  </div>
               

            </div>

          </div>

        </div>
		  </div>

		<!-- Matter ends -->

    </div>

   <!-- Mainbar ends -->	    	
   <div class="clearfix"></div>


<!-- Content ends -->
<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span> 

<!-- JS -->
<script src="../../js/jquery.js"></script> <!-- jQuery -->
<script src="../../js/bootstrap.js"></script> <!-- Bootstrap -->
<script src="../../js/jquery-ui-1.10.2.custom.min.js"></script> <!-- jQuery UI -->
<script src="../../js/jquery.rateit.min.js"></script> <!-- RateIt - Star rating -->
<script src="../../js/jquery.prettyPhoto.js"></script> <!-- prettyPhoto -->
<script src="../../js/bootstrap-datepicker.js"></script>
<script>    $('#dp2').datepicker();
</script>
<script src="../../js/excanvas.min.js"></script>
<script src="../../js/jquery.flot.js"></script>
<script src="../../js/jquery.flot.resize.js"></script>
<script src="../../js/jquery.flot.pie.js"></script>
<script src="../../js/jquery.flot.stack.js"></script>
<script src="../../js/jquery.gritter.min.js"></script> <!-- jQuery Gritter -->
<script src="../../js/sparklines.js"></script> <!-- Sparklines -->
<script src="../../js/jquery.cleditor.min.js"></script> <!-- CLEditor -->
<script src="../../js/bootstrap-datetimepicker.min.js"></script> <!-- Date picker -->
<script src="../../js/jquery.toggle.buttons.js"></script> <!-- Bootstrap Toggle -->
<script src="../../js/filter.js"></script> <!-- Filter for support page -->
<script src="../../js/custom.js"></script> <!-- Custom codes -->
<script src="../../js/charts.js"></script> <!-- Custom chart codes -->
</body>
</html>